package main

import (
	"time"
)

func main() {
	test := map[int]int{1: 2, 2: 2}

	i := 0
	for {
		go func() {
			i++
			test[i] = 1
		}()
		go func() {
			delete(test, i)
		}()
	}
	time.Sleep(time.Second)
}
